package org.zxp.thread.threadlocal.normal;

import java.util.Map;

/**
 * @program: zxp-thread-test
 * @description:
 * @author: X-Pacific zhang
 * @create: 2020-08-25 17:38
 **/
public class ProductMsgContext {
    private static ThreadLocal<Map<String,String>> tl = new ThreadLocal<>();

    public static Map<String,String> get(){
        return tl.get();
    }

    public static void set(Map<String,String> val){
        tl.set(val);
    }

    public static void clean(){
        tl.remove();
    }
}
